rInt
Numbers Random MikeS  Revised

Generating Random Integers Within a Range


Problem
=======

How to generate a random integer between two ranges.

Solution
========

 function rInt(low, hi,    x, y, z) {
     seed()
     x = rand()
     y = (hi - low) + 1
     z = int((x * y) + low)
     return z
}

Author
======

Michael Sanders

